export function numToCharator(num: number) {
    try {
        let res = '';
        let max = 0;
        num = num + 1;
        while(true) {
            let temp = num % 26;
            let charator = String.fromCharCode(65 + temp -1);
            res = charator + res;
            num = Math.floor(num / 25);
            if(num == 0) {
                break;
            }
            if(max > 10) {
                break;
            }else{
                max++;
            }
        }
        return res;        
    } catch (error) {
        return 'error';
    }

}